package com.mux.springboot.controller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mux.springboot.student.StudentService;

//@Controller
//@EnableAutoConfiguration
public class SampleController {
	
	 private static Logger Log = LoggerFactory.getLogger(SampleController.class);
	public  SampleController() {
		System.out.println("init");
	}
	
 //   @Autowired
	private StudentService StudentService;
	/*
	@RequestMapping(value="/")
	@ResponseBody
	public String helloworld(){
		return "helloworld";
	}*/
	
	@RequestMapping(value="/home")
	@ResponseBody
	public String home(HttpSession session){
		Log.info("home");
		return "no home de";
	}
	
	
	
	@RequestMapping("/listAll")
	@ResponseBody
	public List<Map<String,Object>> listAll(){
//		return StudentService.queryForStudentMapAll();
		return null;
	}
	
	

}
